*===============================================================================
* Master do-file 
*===============================================================================
clear all
set more off 


cd "~/Dropbox/VFD/REStat_Native_Files/Stata_Files"

*===============================================================================
* A. INSTALLING PACKAGES
*===============================================================================
* Installing required Stata packages
 	do "packages_program.do"


*===============================================================================
* B. FIGURES AND TABLES 
*===============================================================================

* Figure 1: Administrative Dataset: Spatial Distribution of Violence & M-Paisa Users
	note: done in ArcGIS
	

* Figure 2: Administrative Dataset: Trends in Violence Exposure & M-Paisa Transactions
	do "figure_2.do"


* Figure 3: Experimental Dataset: Mobile Salary Treatment Effects & Violence Heterogeneity
	do "figure_3.do"	

	
* Table 1: Administrative Dataset: Violence and M-Paisa Use
	do "table_1.do"
	

* Table 2: Experimental Dataset: Summary Statistics
	do "table_2.do"
	

* Table 3: Experimental Dataset: Violence Expectations, Mobile Money Balance and Cash Savings
	do "table_3.do"


* Table 4: Experimental Dataset: Violence Expectations by Treatment Sample
	do "table_4.do"
	
	
* Table 5: Household Survey Dataset: Violence and Cash Savings
	do "table_5.do"


* Table 6: Household Survey Dataset: Violence and Cash Savings - Robustnes
	do "table_6.do"

	
*===============================================================================
* C. ONLINE APPENDIX FIGURES AND TABLES 
*===============================================================================

* Table A0: R2 from Predicting Residual Violence
	do "table_a0.do"
	
	
* Table A1: Administrative Dataset: Violence and M-Paisa Use, All Users
	do "table_a1.do"
	
	
* Table A2: Administrative Dataset: Violence and M-Paisa Use, using Different Radii
	do "table_a2.do"


* Table A3: Administrative Dataset: Violence and M-Paisa Use, COG-nearest village match
	do "table_a3.do"
	
	
* Table A4: Administrative Dataset: Violence and M-Paisa Use, Conditioning on Prior Exposure to Violence
	do "table_a4.do"
	
	
* Table A5: Administrative Dataset: Violence and M-Paisa Use, Fixed Effects Sensitivity
	do "table_a5.do"
	
	
* Table A6: Administrative Dataset: Violence and M-Paisa Use, Adding District-level Controls	
	do "table_a6.do"
	
	
* Table A7: Administrative Dataset: Violence and M-Paisa Use, Non-Imputed Locations
	do "table_a7.do"
	
	
* Table A8: Experimental Dataset: Balance Tests (Treatment = Mobile Salary)
	do "table_a8.do"
	
	
* Table A9: Experimental Dataset: Treatment Effects by Violence Expectations
	do "table_a9.do"
	
	
* Table A10: Experimental Dataset: Violence Expectations, Mobile Money Balance and Cash Saving
	do "table_a10.do"
	

* Table A11: Experimental Dataset: Treatment Effects by Violence Expectations - Robustness
	do "table_a11.do"
	
	
* Table A12: Experimental Dataset: Violence Expectations and Other Economic Response
	do "table_a12.do"
	
	
* Table A13: Experimental Dataset: Violence Expectations by Treatment Sample
	do "table_a13.do"
	
	
* Table A14: Experimental Dataset: Effect of Violence on Days to M-Paisa Withdrawal
	do "table_a14.do"
	
	
* Table A15: Household Survey Dataset: Violence and Cash Savings Robustness
	do "table_a15.do"
	
	
* Table A16: Household Survey Dataset: Violence and Cash Savings - Additional Robustness
	do "table_a16.do"
	

* Figure A1: Daily Locations – using Village closest to COG (Dec 2010 - April 2012)
	note: done in ArcGIS
	
	
* Figure A2: Experimental Dataset: CADG Provincial Office Locations (2012) 	
	note: done in ArcGIS
	


